home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / Q-R / RenameRes 1.0 XFCN.cpt / RenameRes 1.0 XFCN / RenameRes 1.0 / cards.xml < prev    next >
Text File  |  1992-07-05  |  7KB  |  165 lines

  1. card_4131.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>4131</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_4536.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2758</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3250.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>button</type>
  16.         <visible> <true /> </visible>
  17.         <reserved5> 0 </reserved5>
  18.         <reserved4> 0 </reserved4>
  19.         <reserved3> 0 </reserved3>
  20.         <reserved2> 0 </reserved2>
  21.         <reserved1> 0 </reserved1>
  22.         <enabled> <true /> </enabled>
  23.         <rect>
  24.             <left>393</left>
  25.             <top>305</top>
  26.             <right>495</right>
  27.             <bottom>330</bottom>
  28.         </rect>
  29.         <style>roundrect</style>
  30.         <showName> <true /> </showName>
  31.         <highlight> <false /> </highlight>
  32.         <autoHighlight> <true /> </autoHighlight>
  33.         <sharedHighlight> <true /> </sharedHighlight>
  34.         <family>0</family>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>center</textAlign>
  38.         <font>Chicago</font>
  39.         <textSize>12</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <name>OK</name>
  42.         <script>on mouseUpvisual effect dissolvego cd 1end mouseUp</script>
  43.     </part>
  44.     <name></name>
  45.     <script></script>
  46. </card>
  47.  
  48.  
  49. card_2980.xml
  50. <?xml version="1.0" encoding="utf-8" ?>
  51. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  52. <card>
  53.     <id>2980</id>
  54.     <filler1>0</filler1>
  55.     <bitmap>BMAP_4094.pbm</bitmap>
  56.     <cantDelete> <false /> </cantDelete>
  57.     <showPict> <true /> </showPict>
  58.     <dontSearch> <false /> </dontSearch>
  59.     <owner>2758</owner>
  60.     <link rel="stylesheet" type="text/css" href="stylesheet_3250.css" />
  61.     <part>
  62.         <id>1</id>
  63.         <type>field</type>
  64.         <visible> <true /> </visible>
  65.         <dontWrap> <false /> </dontWrap>
  66.         <dontSearch> <false /> </dontSearch>
  67.         <sharedText> <false /> </sharedText>
  68.         <fixedLineHeight> <false /> </fixedLineHeight>
  69.         <autoTab> <false /> </autoTab>
  70.         <lockText> <true /> </lockText>
  71.         <rect>
  72.             <left>100</left>
  73.             <top>139</top>
  74.             <right>505</right>
  75.             <bottom>302</bottom>
  76.         </rect>
  77.         <style>scrolling</style>
  78.         <autoSelect> <false /> </autoSelect>
  79.         <showLines> <false /> </showLines>
  80.         <wideMargins> <false /> </wideMargins>
  81.         <multipleLines> <false /> </multipleLines>
  82.         <reservedFamily> 0 </reservedFamily>
  83.         <titleWidth>0</titleWidth>
  84.         <icon>0</icon>
  85.         <textAlign>left</textAlign>
  86.         <font>Geneva</font>
  87.         <textSize>9</textSize>
  88.         <textStyle>plain</textStyle>
  89.         <textHeight>12</textHeight>
  90.         <name></name>
  91.         <script></script>
  92.     </part>
  93.     <part>
  94.         <id>3</id>
  95.         <type>button</type>
  96.         <visible> <true /> </visible>
  97.         <reserved5> 0 </reserved5>
  98.         <reserved4> 0 </reserved4>
  99.         <reserved3> 0 </reserved3>
  100.         <reserved2> 0 </reserved2>
  101.         <reserved1> 0 </reserved1>
  102.         <enabled> <true /> </enabled>
  103.         <rect>
  104.             <left>411</left>
  105.             <top>308</top>
  106.             <right>504</right>
  107.             <bottom>330</bottom>
  108.         </rect>
  109.         <style>roundrect</style>
  110.         <showName> <true /> </showName>
  111.         <highlight> <false /> </highlight>
  112.         <autoHighlight> <true /> </autoHighlight>
  113.         <sharedHighlight> <true /> </sharedHighlight>
  114.         <family>0</family>
  115.         <titleWidth>0</titleWidth>
  116.         <icon>0</icon>
  117.         <textAlign>center</textAlign>
  118.         <font>Chicago</font>
  119.         <textSize>12</textSize>
  120.         <textStyle>plain</textStyle>
  121.         <name>About...</name>
  122.         <script>on mouseUpvisual effect dissolvego next cdend mouseUp</script>
  123.     </part>
  124.     <part>
  125.         <id>4</id>
  126.         <type>button</type>
  127.         <visible> <true /> </visible>
  128.         <reserved5> 0 </reserved5>
  129.         <reserved4> 0 </reserved4>
  130.         <reserved3> 0 </reserved3>
  131.         <reserved2> 0 </reserved2>
  132.         <reserved1> 0 </reserved1>
  133.         <enabled> <true /> </enabled>
  134.         <rect>
  135.             <left>239</left>
  136.             <top>308</top>
  137.             <right>403</right>
  138.             <bottom>330</bottom>
  139.         </rect>
  140.         <style>roundrect</style>
  141.         <showName> <true /> </showName>
  142.         <highlight> <false /> </highlight>
  143.         <autoHighlight> <true /> </autoHighlight>
  144.         <sharedHighlight> <true /> </sharedHighlight>
  145.         <family>0</family>
  146.         <titleWidth>0</titleWidth>
  147.         <icon>0</icon>
  148.         <textAlign>center</textAlign>
  149.         <font>Chicago</font>
  150.         <textSize>12</textSize>
  151.         <textStyle>plain</textStyle>
  152.         <name>RenameRes Example</name>
  153.         <script>-- RenameRes Example Script-- Version 1.0-- By Kevin Harris--on mouseUpput 0 into numberItput 128 into idNumanswer "First select the sample file that came with this stack..."answer file "Select the file:" of type "rsrc"put it into fileNameif fileName is empty then exit mouseUpask "Now type a new name for the resources:"put it into theNameanswer "Now RenameRes will rename all the resources..."repeat with i=idNum to 138add 1 to numberItset cursor to busyget RenameRes(fileName,i,"PICT",,theName&numberIt)put it into msgend repeatput "The resources have been renamed " & theName & "1 to " & theName & numberIt & "." into tanswer tanswer "Now lets take a look at the script in the RenameRes Example button to see how to do it!"edit script of cd btn "RenameRes Example" of this cdend mouseUp</script>
  154.     </part>
  155.     <content>
  156.         <layer>card</layer>
  157.         <id>1</id>
  158.         <text><span class="style3">enameRes XFCN - By Kevin Harris</span><span class="style1">Special Thanks to: Mark Hanrek                            Jan FranceRenameRes is a function to allow you to rename any type of resource in any file from within Hypercard.  </span><span class="style4">Syntax Breakdown:</span><span class="style1">filename - This is the full path to the file that contains the resource you want to                change.   Example: "My Hard Disk:Pictures:Bozo"resId - This is the id number of the resource to be changed.resType - This is the type of resource it is, this is always a four character name.                Example: PICT, MENU, WIND, DLOG, etc.resName - This is the original name of the resource if it has one.  This parameter                 is optional.newName - This is the new name you want to give it.</span><span class="style4">Sample Script:</span><span class="style1">on mouseUp  get RenameRes("My Hard Disk:MyResources","2000","PICT",,"NewName")  put it into msgend mouseUpThis script will rename the PICT resource, id 2000, in the file MyResources on the volume My Hard Disk to NewName.  It will then return any errors to the message box, if there are any.</span><span class="style4">Error Codes:</span><span class="style1">0 = No Error.-192 = Resource Not Found.-193 = Resource file not found.</span><span class="style4">WARNING</span><span class="style5">Renaming resources located in System files or files used by the System is not recommended!  The author takes no responsibility for any damages caused from misuse of this external.</span></text>
  159.     </content>
  160.     <name></name>
  161.     <script></script>
  162. </card>
  163.  
  164.  
  165.